package com.woniuxy.caradmin.service.impl;

import com.woniuxy.caradmin.entity.pojo.Feerecord;
import com.woniuxy.caradmin.entity.vo.FeerecordVo;
import com.woniuxy.caradmin.mapper.FeerecordMapper;
import com.woniuxy.caradmin.service.FeerecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author womenzu
 * @since 2020-12-07
 */
@Service
public class FeerecordServiceImpl  implements FeerecordService{
    @Autowired
    private FeerecordMapper feerecordMapper;
    @Override
    public List<Feerecord> selectAllFeeRecord(FeerecordVo feerecordVo) {
        return feerecordMapper.selectAllFeeRecord();
    }

    @Override
    public List<Feerecord> selectAllFeeRecordByVid(String vehiclenum) {
        return feerecordMapper.selectAllFeeRecordByVid(vehiclenum);
    }

    @Override
    public int addFeeRecord(Feerecord feerecord) {
        return feerecordMapper.addFeeRecord(feerecord);
    }

    @Override
    public int updateFeeRecord(Feerecord feerecord) {
        return feerecordMapper.updateFeeRecord(feerecord);
    }

    @Override
    public int deleteFeeRecord(Integer id) {
        return feerecordMapper.deleteFeeRecord(id);
    }
}
